home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>32</cardCount>
- <cardID>7608</cardID>
- <listID>2860</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>270</height>
- </cardSize>
- <script>--
- -- Utility routines
- --
-
- On ResetScrollBars
- -- leaves all scroll bars nice and tidy.
- Unmark all cards
- Mark cards where the scroll of background field "Description" ≠ 0
- Repeat
- Go to next marked card
- If not the marked of this card then
- Exit repeat
- End If
- Set scroll of background field "Description" to 0
- Unmark this card
- End Repeat
- End ResetScrollBars
-
- On CopyDescription
- -- copies the contents of the “Description” field to
- -- the Clipboard. Works even if the field is locked.
- Select char 1 to (the length of background field "Description") ¬
- of background field "Description"
- DoMenu "Copy Text"
- Select empty
- End CopyDescription
-
- On UnlockFields
- -- unlocks all background fields.
- Repeat with i = 1 to the number of background fields
- If not the SharedText of background field i then
- Set LockText of background field i to false
- End If
- End Repeat
- End UnlockFields
-
- On LockFields
- -- locks all background fields.
- Repeat with i = 1 to the number of background fields
- Set LockText of background field i to true
- End Repeat
- End LockFields
-
- On StripTabs
- -- strips tab characters from all fields.
- If the LockText of background field "Name" then
- Answer "Unlock fields first."
- Exit StripTabs
- End If
- Repeat
- Find string Tab
- If the result is not empty then
- Exit Repeat
- End If
- Put space into the foundchunk
- End Repeat
- End StripTabs
-
- On SortCards
- -- sorts cards by background field “Name”
- If the LockText of background field "Name" then
- Answer "Unlock fields first."
- Exit SortCards
- End If
- Push this card
- Sort this background by field "Name"
- Pop card
- End SortCards
-
- On WhiteOutButton ButtonID
- -- paints a white rectangle matching the bounds of
- -- the specified background button. Make sure you’re
- -- in background edit mode before invoking this routine.
- Choose select tool
- Drag from the left of background button id ButtonID, ¬
- the top of background button id ButtonID to ¬
- the right of background button id ButtonID, ¬
- the bottom of background button id ButtonID
- DoMenu "Clear Picture"
- Choose rect tool
- Drag from the left of background button id ButtonID, ¬
- the top of background button id ButtonID to ¬
- the right of background button id ButtonID, ¬
- the bottom of background button id ButtonID
- Choose browse tool
- End WhiteOutButton
-
- On DeleteAllCards
- -- gets rid of all cards in this background except one,
- -- and empties all fields in the remaining card.
- If the LockText of background field "Name" then
- Answer "Unlock fields first."
- Exit DeleteAllCards
- End If
- Answer "Really delete all cards?" with "Do It" or "I’m a Teapot"
- If it is not "Do It" then
- Exit DeleteAllCards
- End If
- Go to first card of this background
- Put 0 into CardsDeleted
- Repeat with i = 1 to the number of cards in this background - 1
- Set cursor to busy
- DoMenu "Delete Card"
- Add 1 to CardsDeleted
- If CardsDeleted = 100 then
- DoMenu "Compact Stack"
- Put 0 into CardsDeleted
- End If
- End Repeat
- Repeat with i = 1 to the number of background fields
- If not the SharedText of background field i then
- Put empty into background field i
- End If
- End Repeat
- If CardsDeleted ≠ 0 then
- DoMenu "Compact Stack"
- End If
- End DeleteAllCards
- </script>
- <background id="2638" file="background_2638.xml" name="XDoc" />
- <background id="10485" file="background_10485.xml" name="Data Types" />
- <card id="7608" file="card_7608.xml" marked="false" name="" owner="2638" />
- <card id="4369" file="card_4369.xml" marked="false" name="" owner="2638" />
- <card id="5783" file="card_5783.xml" marked="false" name="" owner="2638" />
- <card id="5991" file="card_5991.xml" marked="false" name="" owner="2638" />
- <card id="2504" file="card_2504.xml" marked="false" name="" owner="2638" />
- <card id="8688" file="card_8688.xml" marked="false" name="" owner="2638" />
- <card id="8248" file="card_8248.xml" marked="false" name="" owner="2638" />
- <card id="7766" file="card_7766.xml" marked="false" name="" owner="2638" />
- <card id="4177" file="card_4177.xml" marked="false" name="" owner="2638" />
- <card id="5161" file="card_5161.xml" marked="false" name="" owner="2638" />
- <card id="4613" file="card_4613.xml" marked="false" name="" owner="2638" />
- <card id="4957" file="card_4957.xml" marked="false" name="" owner="2638" />
- <card id="3903" file="card_3903.xml" marked="false" name="" owner="2638" />
- <card id="5393" file="card_5393.xml" marked="false" name="" owner="2638" />
- <card id="9075" file="card_9075.xml" marked="false" name="" owner="2638" />
- <card id="8891" file="card_8891.xml" marked="false" name="" owner="2638" />
- <card id="9360" file="card_9360.xml" marked="false" name="" owner="2638" />
- <card id="9552" file="card_9552.xml" marked="false" name="" owner="2638" />
- <card id="6239" file="card_6239.xml" marked="false" name="" owner="2638" />
- <card id="7158" file="card_7158.xml" marked="false" name="" owner="2638" />
- <card id="6638" file="card_6638.xml" marked="false" name="" owner="2638" />
- <card id="6827" file="card_6827.xml" marked="false" name="" owner="2638" />
- <card id="9805" file="card_9805.xml" marked="false" name="" owner="2638" />
- <card id="10014" file="card_10014.xml" marked="false" name="" owner="2638" />
- <card id="7260" file="card_7260.xml" marked="false" name="" owner="2638" />
- <card id="11533" file="card_11533.xml" marked="false" name="" owner="2638" />
- <card id="8187" file="card_8187.xml" marked="false" name="" owner="2638" />
- <card id="59556" file="card_59556.xml" marked="false" name="" owner="2638" />
- <card id="11017" file="card_11017.xml" marked="false" name="" owner="10485" />
- <card id="11344" file="card_11344.xml" marked="false" name="" owner="10485" />
- <card id="2274" file="card_2274.xml" marked="false" name="" owner="10485" />
- <card id="10520" file="card_10520.xml" marked="false" name="" owner="10485" />
- </stack>
-